import React from 'react'

import {
    HomeOutlined,
    UserSwitchOutlined,
    UserOutlined,
    OrderedListOutlined,

} from '@ant-design/icons'

// import Home from '../views/home/Index'

const menus = [
    {
        key: '/',
        label: '系统首页',
        icon: <HomeOutlined />,
        component: React.lazy(()=> import('../views/home/Index'))
    },{
        key: '/user',
        icon: <UserOutlined />,
        label: '账号管理',
        children: [{
            key: '/user/list',
            label: '用户列表',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/user/Index'))
        },{
            key: '/user/admin',
            label: '管理员列表',
            icon: <UserSwitchOutlined />,
            component: React.lazy(()=> import('../views/user/Admin'))
        }]
    },{
        key: '/banner',
        icon: <UserOutlined />,
        label: '轮播图管理',
        children: [{
            key: '/banner/list',
            label: '轮播图列表',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/banner/Index'))
        },{
            key: '/banner/add',
            label: '添加轮播图',
            icon: <UserSwitchOutlined />,
            component: React.lazy(()=> import('../views/banner/Add'))
        }]
    },{
        key: '/pro',
        icon: <UserOutlined />,
        label: '商品管理',
        children: [{
            key: '/pro/list',
            label: '商品列表',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/pro/Index'))
        },{
            key: '/pro/recommend',
            label: '推荐列表',
            icon: <UserSwitchOutlined />,
            component: React.lazy(()=> import('../views/pro/Recommend'))
        },{
            key: '/pro/search',
            label: '筛选列表',
            icon: <UserSwitchOutlined />,
            component: React.lazy(()=> import('../views/pro/Search'))
        }]
    },{
        key: '/data',
        icon: <UserOutlined />,
        label: '数据可视化',
        children: [{
            key: '/data/adtdCharts',
            label: 'adtdCharts',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/data/Index'))
        }]
    },{
        key: '/editor',
        icon: <UserOutlined />,
        label: '编辑器管理',
        children: [{
            key: '/editor/index',
            label: '富文本编辑器',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/editor/Index'))
        },{
            key: '/editor/md',
            label: 'MD编辑器',
            icon: <UserSwitchOutlined />,
            component: React.lazy(()=> import('../views/editor/Md'))
        }]
    },{
        key: '/excel',
        icon: <UserOutlined />,
        label: '文件管理',
        children: [{
            key: '/excel/import',
            label: '文件导入',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/excel/Import'))
        },{
            key: '/excel/export',
            label: '文件导出',
            icon: <UserSwitchOutlined />,
            component: React.lazy(()=> import('../views/excel/Export'))
        }]
    },{
        key: '/map',
        icon: <UserOutlined />,
        label: '地图管理',
        children: [{
            key: '/map/index',
            label: '百度地图',
            icon: <OrderedListOutlined />,
            component: React.lazy(()=> import('../views/map/Index'))
        }]
    }
]


export default menus